package com.ruoyi.yun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunCoufigEditionMapper;
import com.ruoyi.yun.domain.YunCoufigEdition;
import com.ruoyi.yun.service.IYunCoufigEditionService;

/**
 * 版本号管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunCoufigEditionServiceImpl implements IYunCoufigEditionService 
{
    @Autowired
    private YunCoufigEditionMapper yunCoufigEditionMapper;

    /**
     * 查询版本号管理
     * 
     * @param id 版本号管理主键
     * @return 版本号管理
     */
    @Override
    public YunCoufigEdition selectYunCoufigEditionById(Long id)
    {
        return yunCoufigEditionMapper.selectYunCoufigEditionById(id);
    }

    /**
     * 查询版本号管理列表
     * 
     * @param yunCoufigEdition 版本号管理
     * @return 版本号管理
     */
    @Override
    public List<YunCoufigEdition> selectYunCoufigEditionList(YunCoufigEdition yunCoufigEdition)
    {
        return yunCoufigEditionMapper.selectYunCoufigEditionList(yunCoufigEdition);
    }

    /**
     * 新增版本号管理
     * 
     * @param yunCoufigEdition 版本号管理
     * @return 结果
     */
    @Override
    public int insertYunCoufigEdition(YunCoufigEdition yunCoufigEdition)
    {
        return yunCoufigEditionMapper.insertYunCoufigEdition(yunCoufigEdition);
    }

    /**
     * 修改版本号管理
     * 
     * @param yunCoufigEdition 版本号管理
     * @return 结果
     */
    @Override
    public int updateYunCoufigEdition(YunCoufigEdition yunCoufigEdition)
    {
        return yunCoufigEditionMapper.updateYunCoufigEdition(yunCoufigEdition);
    }

    /**
     * 批量删除版本号管理
     * 
     * @param ids 需要删除的版本号管理主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigEditionByIds(Long[] ids)
    {
        return yunCoufigEditionMapper.deleteYunCoufigEditionByIds(ids);
    }

    /**
     * 删除版本号管理信息
     * 
     * @param id 版本号管理主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigEditionById(Long id)
    {
        return yunCoufigEditionMapper.deleteYunCoufigEditionById(id);
    }
}
